package com.faithbj.constant;

import java.util.HashMap;
import java.util.Map;

public class Constant {

    /** 市级标志位 */
    public static String CITY_REGION_TYPE = "1";
    /** 区县标志位 */
    public static String CONTRY_REGION_TYPE = "2";
    /** 街道标志位 */
    public static String STREET_REGION_TYPE = "3";

    /** 外网人员信息录入状态ID，暂定，具体值是要根据JBPM那样的定义 */
    public static Long INPUT_STATE = new Long("2");
    /** 街道审核状态ID，暂定，具体值是要根据JBPM那样的定义 */
    public static Long STREET_CHECK_STATE = new Long("3");
    /** 准入标准已核实状态ID，暂定，具体值是要根据JBPM那样的定义 */
    public static Long ACCESS_CHECK_STATE = new Long("8");
    /** 中止核对的状态ID，暂定，具体值是要根据JBPM那样的定义 */
    public static Long PAUSE_CHECK_STATE = new Long("15");
    /** 一次审核状态ID，暂定，具体值是要根据JBPM那样的定义 */
    public static Long FIRST_CHECK_STATE = new Long("10");
    /** 差异数的状态ID，暂定，具体值是要根据JBPM那样的定义 */
    public static Long DIFF_STATE = new Long("12");
    /** 生成核对表状态ID，暂定，具体值是要根据JBPM那样的定义 */
    public static Long CHECK_TABLE_STATE = new Long("11");
    /** 终止核对状态ID，暂定，具体值是要根据JBPM那样的定义 */
    public static Long TERMINAL_CHECK_STATE = new Long("16");
    /** 抽查状态ID，暂定，具体值是要根据JBPM那样的定义 */
    public static Long SECOND_CHECK_STATE = new Long("13");
    /** 生成核对报告状态ID，暂定，具体值是要根据JBPM那样的定义 */
    public static Long CHECK_REPORT_STATE = new Long("14");

    /** 常量 **/
    public static final Integer INTEGER_TRUE = 1;
    public static final Integer INTEGER_FALSE = 0;

    public static final boolean TRUE = true;
    public static final boolean FALSE = false;

    /** 部委编码 **/
    public static final String DEP_NUM_CIVIAL = "01"; // 民政局编号
    public static final String DEP_NUM_HP = "02"; // 房产局编号
    public static final String DEP_NUM_SIO = "03"; // 人社局编号
    public static final String DEP_NUM_TAX = "04"; // 地税局编号
    public static final String DEP_NUM_PS = "05"; // 公安局编号
    public static final String DEP_NUM_IBA = "06"; // 工商局编号
    public static final String DEP_NUM_AFM = "07"; // 住房公积金管理中心

    public static final Map<String, String> OFFICAL_DEP_MAP = new HashMap<String, String>();
    static {
        OFFICAL_DEP_MAP.put(DEP_NUM_CIVIAL, "Civial");
        OFFICAL_DEP_MAP.put(DEP_NUM_HP, "HP");
        OFFICAL_DEP_MAP.put(DEP_NUM_SIO, "SIO");
        OFFICAL_DEP_MAP.put(DEP_NUM_TAX, "Tax");
        OFFICAL_DEP_MAP.put(DEP_NUM_PS, "PS");
        OFFICAL_DEP_MAP.put(DEP_NUM_IBA, "IBA");
        OFFICAL_DEP_MAP.put(DEP_NUM_AFM, "AFM");
    }

    //===================导入相关常量============================================//
//  public static final String EXP_FILE_PATH_PREFIX = "/home/import/data/";
    public static final String IMP_FILE_PATH_PREFIX = "d:\\import\\";
    /** 导入脚本命令行 **/
    public static final String IMP_SHELL_COMMAND = "./import.sh";
    /** 导入的数据文件 **/
    public static final String IMP_ZIP_FILE = "import.zip";
    
    //===================导出相关常量============================================//
    /** 导出数据文件路径前缀 **/
//    public static final String EXP_FILE_PATH_PREFIX = "/home/export/data/";
    public static final String EXP_FILE_PATH_PREFIX = "d:\\export\\";
    
    /** 导出脚本工作目录 **/
    public static final String EXP_WORKING_DIR_PATH = "/home/export/shell";
    /** 导出脚本命令行 **/
    public static final String EXP_SHELL_COMMAND = "./export.sh";
    /** 导出的数据文件 **/
    public static final String EXP_ZIP_FILE = "export.zip";
    
    //===================导入导出通用常量=======================================//
    public static final String JSON_FILE_CHECK_TOTAL = "check_total.db";
    public static final String JSON_FILE_EMPLOYMENT = "employment.db";
    public static final String JSON_FILE_FAMILY_MEMBER_PROPERTY = "family_member_property.db";

    public static final String[] JSON_FILES = new String[] { JSON_FILE_CHECK_TOTAL, JSON_FILE_EMPLOYMENT, JSON_FILE_FAMILY_MEMBER_PROPERTY};

}
